//获取url参数
function getQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);
    if (r != null)
        return unescape(r[2]);
    return null;
}

var base64 = new Base64();
var type=getQueryString("type");
var id = getQueryString("id");
var name = getQueryString("name");
name = base64.decode(name);
// alert(window.location.search);

function previous() {
    window.location = "userGroup-list.html?type="+ type + "&id=" + id + "&name=" + base64.encode(name);
}

function gotoTab(num) {
    var page;
    switch(num) {
    case 1:
        page = "user-account.html";
        break;
    case 2:
        page = "user-linkID.html";
        break
    case 3:
        page = "user-ipsegment.html";
        break;
    case 4:
        page = "user-brasip.html";
        break;
    }
    window.location = page + window.location.search;
}
